import QtQuick 2.8
import QtQuick.Controls 2.2

Item {
    id: item1
    height: 80
    width: 640
    Image {
        id: image
        width: 28;height: 26;source: "Pic/triangle.png"

        MouseArea {
            id: mouseArea; width: 19; height: 20; hoverEnabled: false;anchors.fill: parent
            onClicked: {
                //判断是不是在横向三角方向，如果不是转方向
                image.rotation = image.rotation == -90?0:-90
            }
        }
    }

    Item {
        id: item2
        anchors.bottom: parent.bottom
        anchors.right: parent.right
        anchors.left: image.right
        anchors.top: parent.top

        TextEdit {
            id: textEdit
            x: 0
            y: 0
            width: 611
            height: 25
            text: qsTr("Please Input content")
            anchors.top: parent.top
            anchors.left: parent.left
            font.pixelSize: 12
        }

        Rectangle {
            id: rectangle
            width: 24
            height: 25
            color: "#ea9595"
            anchors.left: parent.left
            anchors.leftMargin: 0
            anchors.top: textEdit.bottom
            anchors.topMargin: 0
        }
        TextField {
            id: textField
            x: 25
            y: 25
            width: 95
            height: 25
            text: qsTr("NoPorject")
        }
        TextField {
            id: textField1
            x: 121
            y: 25
            width: 95
            height: 25
            text: qsTr("NoTag")
        }
    }

    TextEdit {
        id: textEdit1
        x: 23
        y: 52
        width: 617
        height: 28
        text: qsTr("Text Edit")
        font.pixelSize: 12
    }

}
